﻿using UnityEngine;
using System.Collections;

public class Billboard : MonoBehaviour {

    public  Camera camera;
    Quaternion direction;  
	void Start () 
    {
        camera = Camera.main;
        direction = Quaternion.FromToRotation(new Vector3(0, 0, 1), Vector3.forward);  
	}
	
	
	void Update () 
    {
      
        transform.rotation = camera.transform.rotation * direction; 
	}
}
